package com.shark.demo;

import java.util.concurrent.atomic.AtomicLong;

/**
 * @ClassName StackOverFlowErrorDemo
 * @Description TODO
 * @Author 东北彭于晏
 * @Date 2024/10/9  15:31
 * @Version 1.0
 **/
public class StackOverFlowErrorDemo {
    private static AtomicLong atomicLong = new AtomicLong(0);

    public static void test() {
        System.out.println(atomicLong.getAndIncrement());
        test();
    }

    public static void main(String[] args) {
        StackOverFlowErrorDemo.test();
    }
}